#include <iostream>

int main() {
    int arr[5] = {2, 4, 6, 8, 10};
    int target = 6;
    int index = -1;

    for (int i = 0; i < 5; ++i) {
        if (arr[i] == target) {
            index = i;
            break;
        }
    }

    if (index != -1) {
        std::cout << "Element " << target << " found at index " << index << std::endl;
    } else {
        std::cout << "Element " << target << " not found in the array." << std::endl;
    }

    return 0;
}
